<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />


<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ihg-theme-draft">

  <%@ include file="/WEB-INF/include/header.jsp"%>

  <div class="container-fluid ihg-container">

    <div class="ihg-breadcrumb">
      <ol class="breadcrumb border-breadcrumb">
        <li class="active">Profile&nbsp;&nbsp;-&nbsp;&nbsp;Admin</li>
      </ol>
    </div>
    
    <div class="ihg-content-layout">

      <div class="row" style="margin-top: 15px;">
      
        <div class="col-xs-12">
          
          <div class="form-horizontal ihg-form">
            
            <div class="ihg-form-title clearfix">
              <h5>Profile Basic Information</h5>
              <div class="pull-right">
                <a href="${ctx.host}/profile/edit-password" data-target="#edit-password" data-toggle="modal" style="color: #D88362;">Edit Password</a>
                <a href="${ctx.host}/profile/edit" data-target="#edit" data-toggle="modal" style="color: #D88362;">Edit info</a>
              </div>
            </div>
          
            <div class="form-horizontal ihg-form">
        
              <div class="form-group ihg-form-group">
                <label class="control-label col-xs-2">Name:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${administrator.name}</p>
                </div>
                
                <label class="control-label col-xs-2">Email:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${administrator.email}</p>
                </div>
    
              </div>
    
              <div class="form-group ihg-form-group">
                <label class="control-label col-xs-2">Phone:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${administrator.telephone}</p>
                </div>
    
                <label class="control-label col-xs-2">Location:</label>
                <div class="col-xs-3">
                  <p class="form-control-static">${administrator.location}</p>
                </div>
              </div>
    
            </div>
          </div>
        
        </div>
      </div>      
    </div>
  </div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>

  <d:resource root="${ctx.resource}/build" type="script" src="js/page/system/profile.js" />
  <script type="text/javascript">
    require([ 'page/system/profile' ], function(page) {
      page.init();
    })
  </script>
  
</body>
</html>